#!/usr/bin/env python

from signals import commonSignals
import gtk
import gettext

gettext.install('blendIT','locale');

class colourSelectionDialog(gtk.ColorSelectionDialog):

   def __init__(self,blend,signal,buttonWidget):
      sigs = commonSignals.signals(None);

      gtk.ColorSelectionDialog.__init__(self,_("Text Colour"));
      self.colorsel.set_has_opacity_control(False);
      self.ok_button.connect("clicked",signal,self.colorsel,buttonWidget,self);
      self.cancel_button.connect("clicked",self.on_close,buttonWidget);
      self.help_button.hide();

   def on_close(self,widget,buttonWidget):
      buttonWidget.set_active(False);
      self.destroy();
         